Closes the dialog box without making any changes.